<?php
/* @var $this RegistrationController */
/* @var $model Registration */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('CActiveForm', array(
          'id'=>'activeregistration-form',
          'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

    <?php if(YII_DEBUG) echo $form->errorSummary($model);?>

    <div class="row">

        <div class="span-8">
            <?php echo $form->labelEx($model,'lastname'); ?>
            <?php echo $form->textField($model,'lastname',array('size'=>60,'maxlength'=>255, 'class'=>'span-7')); ?>
            <?php echo $form->error($model,'lastname'); ?>
        </div>

        <div class="span-7">
            <?php echo $form->labelEx($model,'firstname'); ?>
            <?php echo $form->textField($model,'firstname',array('size'=>60,'maxlength'=>255, 'class'=>'span-7')); ?>
            <?php echo $form->error($model,'firstname'); ?>
        </div>

        <div class="clear"></div>

    </div>


    <div class="row">

        <div class="span-8">
            <?php echo $form->labelEx($model,'email'); ?>
            <?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255, 'class'=>'span-7')); ?>
            <?php echo $form->error($model,'email'); ?>
        </div>

        <div class="span-7">
            <?php echo $form->labelEx($model,'phone'); ?>
            <?php echo $form->textField($model,'phone',array('size'=>60,'maxlength'=>255, 'class'=>'span-7', 'placeholder' => '+36 90 123 4567 alakban')); ?>
            <?php echo $form->error($model,'phone'); ?>
        </div>
        <div class="clear"></div>

    </div>

    <div class="row">

        <div class="span-8">

            <?php echo $form->labelEx($model,'birthDate'); ?>
            <?php echo $form->textField($model,'birthDate', array('class'=> 'span-7 datepicker', 'placeholder'=>'1990. 01. 01. alakban')); ?>
            <?php echo $form->error($model,'birthDate'); ?>

        </div>

        <div class="span-7">
            <?php echo $form->labelEx($model,'birthPlace'); ?>
            <?php echo $form->textField($model,'birthPlace', array('class'=>'span-7')); ?>
            <?php echo $form->error($model,'birthPlace'); ?>
        </div>
        <div class="clear"></div>

    </div>


    <div class="row">
        <?php echo $form->labelEx($model,'studies'); ?>
        <?php echo $form->textArea($model,'studies',array('rows'=>2, 'cols'=>50, 'class'=>'span-15')); ?>
        <?php echo $form->error($model,'studies'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'musics'); ?>
        <?php echo $form->textField($model,'musics', array('class'=>'span-15 ')); ?>
        <?php echo $form->error($model,'musics'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'results'); ?>
        <?php echo $form->textArea($model,'results',array('rows'=>3, 'cols'=>50, 'class'=>'span-15', )); ?>
        <?php echo $form->error($model,'results'); ?>
    </div>


    <div class="row">
        <?php echo $form->labelEx($model,'recommendation'); ?>

        <div
            class="fileupload fileupload-new"
            data-provides="fileupload">
            <div class="input-append">
                <div class="uneditable-input span6">
                    <i class="icon-file fileupload-exists"></i> <span
                        class="fileupload-preview"></span>
                </div>
                <span class="btn btn-file"><span class="fileupload-new">Feltölt
                </span><span class="fileupload-exists">Módosít</span> <input
                    id="ActiveRegistration_recommendation"
                    name="ActiveRegistration[recommendation]"
                    type="file" /> </span> <a
                    href="#"
                    class="btn fileupload-exists"
                    data-dismiss="fileupload">Mégse</a>
            </div>
        </div>

        <?php echo $form->error($model,'recommendation'); ?>

    </div>

    <div class="row buttons form-actions">
        <?php echo CHtml::submitButton('Regisztrálok', array('class'=>'btn btn-large btn-success span8')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div>
<!-- form -->
